import React, { useEffect } from 'react';
import './App.css';
import { apiLogin } from './api'

function App() {
  // component --> lifeCycle --> api(拦截一下) --> backend
  useEffect(() => {
    const fn = async () => {
      await apiLogin({ username: 'root', password: '123456' })
    }
  }, [])

  return (
    <div className="App">
      App
    </div>
  );
}

export default App;
